/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAOServices;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import Pojo.*;
import Dao.*;
import java.util.List;

/**
 *
 * @author USER
 */
@WebService(serviceName = "QLNHS_DAO_Services")
public class QLNHS_DAO_Services {

    @WebMethod(operationName = "layDanhSachNhaXuatBan")
    public List<NhaXuatBan> layDanhSachNhaXuatBan() {

        return NhaXuatBanDAO.layDanhSachNhaXuatBan();
    }

    @WebMethod(operationName = "layThongTinNhaXuatBan")
    public NhaXuatBan layThongTinNhaXuatBan(@WebParam(name = "maNXB") int maNXB) {
        return NhaXuatBanDAO.layThongTinNhaXuatBan(maNXB);
    }

    @WebMethod(operationName = "layThongTinTheLoai")
    public TheLoai layThongTinTheLoai(@WebParam(name = "maTheLoai") int maTheLoai) {
        return TheLoaiDAO.layThongTinTheLoai(maTheLoai);
    }

    @WebMethod(operationName = "layDanhSachTheLoai")
    public List<TheLoai> layDanhSachTheLoai() {
        return TheLoaiDAO.layDanhSachTheLoai();
    }

    @WebMethod(operationName = "layDanhSachLoaiSach")
    public List<LoaiSach> layDanhSachLoaiSach() {
        return LoaiSachDAO.getList();
    }

    @WebMethod(operationName = "layDanhMucTheoLoaiSach")
    public List<DanhMuc> layDanhMucTheoLoaiSach(@WebParam(name = "maLoaiSach") int maLoaiSach) {
        return DanhMucDAO.getList(maLoaiSach);
    }

    @WebMethod(operationName = "layDanhSachSachMoiNhat")
    public List<Sach> layDanhSachSachMoiNhat() {
        return SachDAO.danhMoiNhats();
    }
}
